package com.mmp.main.servlet.systemsettings;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mmp.common.servlet.BasicServlet;
import com.mmp.main.entity.Site;

public class HospitalContractProfileDisplayServlet extends BasicServlet {

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("site", getCurrentSite(request));
		forward(request, response, "systemsettings/ContractProfile.jsp");
	}

	private Site getCurrentSite(HttpServletRequest request) {
		return getSessionUser(request).getSite();

	}
}
